import Vue from 'vue'

// 引入router
import VueRouter from 'vue-router'

import Find from '../view/find'
import My from '../view/my'
import Part from '../view/part'
// 使用vuerouter
Vue.use(VueRouter)

// 创建
const router = new VueRouter({
  routes: [
    {
      path: '/find',
      component: Find,
    },
    {
      path: '/my',
      component: My,
    },
    {
      path: '/part',
      component: Part,
    },
  ],
})

export default router
